home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Electronic Messages / USEnet Digests / USEnet Vol. 4 / USEnet 4.43 < prev    next >
Encoding:
Text File  |  1988-06-15  |  24.6 KB  |  643 lines  |  [TEXT/ttxt]

  1. 28-Mar-88 12:05:05-PST,25770;000000000000
  2. Return-Path: <usenet-mac-request@RELAY.CS.NET>
  3. Received: from RELAY.CS.NET by SUMEX-AIM.Stanford.EDU with TCP; Mon, 28 Mar 88 12:00:37 PST
  4. Received: from relay2.cs.net by RELAY.CS.NET id ax16700; 28 Mar 88 12:01 EST
  5. Received: from relay.cs.net by RELAY.CS.NET id aa19449; 28 Mar 88 11:37 EST
  6. Received: from sdr.slb.com by RELAY.CS.NET id ak19391; 28 Mar 88 11:33 EST
  7. Date: Mon, 28 Mar 88 09:39 EDT
  8. From: Jeffrey Shulman <SHULMAN@sdr.slb.com>
  9. Subject: Usenet Mac Digest V4 #43
  10. To: usenet-mac@RELAY.CS.NET, PIERCE%HDS@sdr.slb.com
  11. X-VMS-To: in%"usenet-mac@relay.cs.net",in%"PIERCE%HDS@SDR.SLB.COM"
  12.  
  13. Date: Mon 28 Mar 88 09:39:17-GMT
  14. From: Jeff Shulman <SHULMAN@SDR>
  15. Subject: Usenet Mac Digest V4 #43
  16. To: Usenet-List: ;
  17. Message-ID: <575545157.0.SHULMAN@SDR>
  18. Mail-System-Version: <VAX-MM(218)+TOPSLIB(129)@SDR>
  19.  
  20. Usenet Mac Digest     Friday, March 25, 1988         Volume 4 : Issue 43 
  21.  
  22. Today's Topics:
  23.      Warning: Debugger causes system crashes
  24.      Allegro CL Benchmarks
  25.      cheap 2400-baud modem summary
  26.      Re: Quitting the Finder under MF
  27.      Addition/Patch suggestion to Finder
  28.      swapping ram chips
  29.      Dialog Boxes with Scrollable region
  30.      Re: Apple's Video Exansion Kit
  31.      Re: HELP- PLEASE! Need address of ATMS Authors
  32.      ResEdit
  33.      Polygon question
  34.      Bitmap to Region conversion
  35.      MFKeys question
  36.      accurate timing for send/receive of MIDI data
  37.      Re: Allegro CL strangeness; info request (2 messages)
  38.  
  39. ---------------------------------------------------------------------- 
  40.  
  41. From: anson@elrond.CalComp.COM (Ed Anson)
  42. Subject: Warning: Debugger causes system crashes
  43. Date: 22 Mar 88 14:34:56 GMT
  44. Organization: Calcomp, A Lockheed Company, Hudson, NH, USA
  45.  
  46. This may be old news to some, but it just bit me and might bite someone
  47. else: There is a version of the Maxbug debugger which causes system
  48. crashes if more than 1 Mb of RAM is installed.  My copy shows a creation
  49. date of Mon, May 13, 1985 3:38 PM.  A more recent version appears to
  50. have solved the problem.
  51.  
  52. About two weeks ago, I started experiencing frequent system crashes. 
  53. Usually, the cursor froze, but bomb boxes occurred and the display
  54. occasionally freaked out.  These failures were mostly repeatable, but
  55. varied with the context.  I suspected memory or logic failures, and took
  56. my Mac to the shop.  After all, I have AppleCare :-(
  57.  
  58. The tech at the shop ran every diagnostic he had, and even spilled Coke
  59. on the screen.  It wouldn't fail for him.  I brought in my hard disk and
  60. made it fail immediately.  The same hard disk worked on another Mac. 
  61. Then he removed my Dove memory upgrade, and everything worked.  He
  62. marked the upgrade "NG" and billed me $125.  I made him put the memories
  63. in a protective bag, and took them home with me.
  64.  
  65. I then had several lengthy talks with the Tech Support people at Dove. 
  66. They told me several things that had caused other people's upgrades to
  67. fail even with good memories.  I tried their suggestions, but to no
  68. avail.  Then I got them to tell me how the memories mapped into the
  69. address space.  I wrote a quick and dirty memory diagnostic, and found a
  70. range of addresses where a write would cause the system crash.  I then
  71. moved the memories around, expecting to see the bad locations move. 
  72. They didn't.
  73.  
  74. I won't go into any more detail.  The bottom line is: After two weeks
  75. and $125, I discovered that the version of Maxbug I was using was
  76. stepping on the memory.  It apparently assumes that 1 Mb is the biggest
  77. any Mac will ever be. :-)  It installs itself right under the screen
  78. memory.  Unfortunately, when a second meg is added, the screen memory
  79. moves but Maxbug doesn't.
  80.  
  81. I received my copy with the Lightspeed C distribution a coupla years
  82. ago.  I have seen a fixed version included with the more recent
  83. distributions, but even though I am upgraded to version 2.15 I still
  84. have the old version of the debugger.  I got fooled, since I "knew" the
  85. debugger worked.  After all, it'd been around for two years.  I have it
  86. turned off most of the time,  and it took awhile to realize that the
  87. crashes started happening the first  time I turned it on after upgrading
  88. the memory.
  89.  
  90. MORAL (lessons I learned the hard way):
  91.  1. Always remove third-party stuff before going in for Apple service.
  92.  2. Don't always assume that something caused the problem just because
  93.     removing it makes the problem appear to go away.
  94.  3. Sometimes the debugger is the bug.
  95.  4. At least it wasn't a virus.
  96. -- 
  97. =====================================================================
  98.    Ed Anson,    Calcomp Display Products Division,    Hudson NH 03051
  99.    (603) 885-8712,      anson@elrond.CalComp.COM
  100.  
  101.  
  102. ------------------------------
  103.  
  104. From: jasst3@cisunx.UUCP (Jeffrey A. Sullivan)
  105. Subject: Allegro CL Benchmarks
  106. Date: 22 Mar 88 20:25:03 GMT
  107. Organization: Univ. of Pittsburgh, Comp & Info Sys
  108.  
  109. Here is a benchmark examination of Coral Allegro CL vs Lucid CL that is
  110. part of a review article I did for our ITS Newsletter.  Sorry the
  111. formatting is not great, but it's the best I could do on short notice.
  112.  
  113. I also tried to run the gabriel suite on Lyric CL from Xerox, but the
  114. first one took so long to run (never stopped in 5 minutes) that I gave
  115. it up.  If someone has the gabriel suite for Lyric CL, I'd like to see
  116. it.
  117.  
  118. Also, there is a benchmark listing in a past issue of BYTE.  I can't
  119. recall which.
  120.  
  121. Benchmarks 
  122.  
  123. In order to determine the relative efficiency of Allegro CL, the Gabriel
  124. suite of benchmarks was run in Allegro CL and Lucid CL on a Vax 8860. 
  125. The results appear below. 
  126.  
  127.  
  128.     Allegro    Optimized Allegro    Vax (C)    Vax (I)
  129. Boyer    36.000    23.050    7.81/1.01    418.12/26.66 Browse    65.233
  130.     52.800    8.87/0.58    587.73/37.06 CTAK    4.317     3.500    0.74/0.01    35.81/2.99
  131. Dderiv    31.933/4.267     31.017/4.283    3.83/0.2    48.02/2.68
  132. Deriv    32.250/4.183    31.350/4.183    3.06/0.18    54.84/2.03
  133. Destructive    9.017    7.383    0.99/0.09    113.85/1.44
  134. Div-iter    5.333    3.117    1.99/0.11    98.85/6.22
  135. DiOAv-rec    5.000    2.667    2.43/0.08    58.96/4.17
  136. FFT    67.083/4.233    66.550/4.217    41.59/2.13    433.94/28.56
  137. Fprint    9.650    9.567    0.6/0.06    0.63/0.03
  138. Fread    3.700    3.333    1.26/0.13    1.23/0.04 Frpoly Power=2
  139. r=x+y+z+1    0.033    0.050    0.0    0.3/0.02 Frpoly Power=2 r2=1000r    0.017
  140.     0.017    0.01    0.17/0.01 Frpoly Power=2 r3=r in
  141. flonums    0.017    0.017    0.02    0.18/0.01 Frpoly Power=5
  142. r=x+y+z+1    0.167    0.117    0.02    1.61/0.13 Frpoly Power=5
  143. r2=1000r    0.233    0.183    0.06/0.02    1.72/0.11 OAFrpoly Power=5 r3=r in
  144. flonums    0.183    0.150    0.04    1.6/0.16 Frpoly Power=10
  145. r=x+y+z+1    1.517    1.167    0.22/0.02    18.2/1.27 Frpoly Power=10
  146. r2=1000r    2.633    2.283    0.73/0.02    17.69/0.74 Frpoly Power=10 r3=r in
  147. flonums    1.900    1.550    0.36/0.01    18.07/0.82 Frpoly Power=15
  148. r=x+y+z+1    9.767    7.567    1.54/0.13    115.77/1.78 Frpoly Power=15
  149. r2=1000r    20.550    18.200    7.25/0.5    124.55/3.61 Frpoly Power=15 r3=r in
  150. flonums    12.133    9.867    3.83/0.24    118.95/3.26 Puzzle    69.283
  151.     68.267    20.29/0.87    823.23/46.0 STAK    15.200    15.667    0.77/0.03    45.38/0.86
  152. TAK    1.250    0.700    0.26    29.48/0.26 TAKL    13.100    7.133    0.91    263.66/4.39
  153. TAKR    1.433    0.917    0.38/0.03    29.75/0.56
  154. Tprint    29.883    31.600    0.79/0.04    0.8/0.04
  155. Traverse-init    36.533    35.517    5.57/0.29    913.73/85.41
  156. Traverse    135.017    133.967    20.07/1.17    >2600
  157.  
  158. Note:  The optimized Allegro column refers to compiled benchmarks
  159. including the form     (declare (optimize (speed 3) (size 0) (safety 0) ...
  160. ) wrapped around them.  The difference between the Lucid CL benchmarks
  161. when compiled and interpreted is quite marked.  The (C) column refers to
  162. files loaded with (load "file.vbin") after (compile-file "file.cl") has
  163. been completed.  The (I) column refers to files loaded with (load
  164. "file.cl"). 
  165.  
  166. -- 
  167. ..........................................................................
  168. Jeffrey Sullivan              | University of Pittsburgh
  169. jas@cadre.dsl.pittsburgh.edu          | Intelligent Systems Studies Program
  170. jasper@PittVMS.BITNET, jasst3@cisunx.UUCP | Graduate Student
  171.  
  172.  
  173. ------------------------------
  174.  
  175. From: kelvin@im4u.UUCP (Kelvin Thompson)
  176. Subject: cheap 2400-baud modem summary
  177. Date: 23 Mar 88 15:30:01 GMT
  178. Organization: U. Texas CS Dept., Austin, Texas
  179.  
  180. This is a summary of some netters' evaluations of inexpensive 2400-baud
  181. modems.
  182.  
  183. First, thanks to everybody who replied to my query.  Your repsonses will
  184. make me feel a lot more comfortable about buying a modem in a few days.
  185.  
  186. My query concerned two cheap modems I saw in the April 1988 MacUser,
  187. plus a third, suggested by two of the respondents:
  188.  
  189.    Practical Peripherals  $189  p. 125 MacUser (MacConnection)
  190.    Anchor                 $169  p. 158 MacUser (STF mail order)
  191.    Qubie                 ~$169  Byte Magazine
  192.  
  193. I got the most responses about the Practical Peripherals modem. 
  194. Everybody that had used one was happy with it.  People liked the modem's
  195. speaker, multiple status lights, and good Hayes compatibility. 
  196. 'ECKCC@CUNYVM.CUNY.EDU'  noted it comes with trial subscriptions to OAG,
  197. CompuServe and the Source. 'macak@lakesys.UUCP' said he did a lot of
  198. looking around before deciding to get the PP modem.
  199.  
  200. On the down side, 'edmoy@violet.Berkeley.EDU' said he had some trouble
  201. doing  file transfers with CompuServe -- but not GEnie -- with the PP
  202. modem. Two people warned that the MacConnection price for the modem does
  203. not include a "cable" (to the Mac? to Ma Bell? I don't know).
  204.  
  205. Nobody had used a 2400-baud Anchor, but 'ECKCC@CUNYVM.CUNY.EDU' had used
  206. a 1200-baud Anchor modem and found some gaps in its Hayes compatibility
  207. (and that it didn't have a speaker).  He said the Anchor 1200 never gave
  208. him any trouble over years of use, though.
  209.  
  210. Two people recommended the Qubie, which does not advertise in
  211. Mac-related magazines, but which seems to work okay with the Mac. 
  212. 'Gegel@DOCKMASTER.ARPA' said the main drawback of the Qubie was its
  213. loud, unadjustable speaker.
  214.  
  215. 'chrisj@cup.portal.com' said the reason these modems can be so cheap is
  216. that they don't have sophisticated noise-handling features.  To use
  217. cheap modems  on noisy lines, you have to switch them to 1200 baud,
  218. while the more  expensive ones can correct some errors and negotiate
  219. slowdowns with other  smart modems.
  220.  
  221. I certainly hope this summary has helped to promote world peace.
  222. -- 
  223. -- Kelvin Thompson, Lone Rider of the Apocalypse
  224.    kelvin@im4u.cs.utexas.edu  {ihnp4,ctvax,seismo,ucbvax}!ut-sally!im4u!kelvin 
  225.  
  226.  
  227. ------------------------------
  228.  
  229. From: goldman@Apple.COM (Phil Goldman)
  230. Subject: Re: Quitting the Finder under MF
  231. Date: 23 Mar 88 22:47:24 GMT
  232. Organization: Apple Computer Inc, Cupertino, CA
  233.  
  234. In article <1316@ut-emx.UUCP> jdm@ut-emx.UUCP (Jim Meiss) writes:
  235. >...
  236. >What happened though, was that the finder quit too. So here I was running 
  237. >PrintMonitor only, with the MF icon in the upper right, and no "Finder" in
  238. >the Desk accessory menu, or anywhere! Wow! I always wanted to be able to
  239. >run applications without the finder, and there I was. I still could get
  240. >to my DA's and they ran under the DA Handler, which upon quiting gave me
  241. >back PrintMonitor. I finally hit the debug button and got the finder
  242. >back by SM 0 A9F4, G 0. But the system was in an unstable state...As
  243. >was my heart.
  244.  
  245.  
  246. Just like any other application, the Finder can crash.  When this
  247. happens, the user is not informed since it is the job of the Finder to
  248. do the informing. When you quit all other apps, a new Finder will
  249. automatically be launched. Until then, you are running "Finder-less".
  250.  
  251. One more note:  There is nothing in MultiFinder that prevents the Finder
  252. from quitting, there is simply no way for the user to convince the
  253. Finder to do so.
  254. -- 
  255. -Phil Goldman
  256. Apple Computer
  257.  
  258.  
  259. ------------------------------
  260.  
  261. From: hallett@hamlet.steinmetz (Jeff A. Hallett)
  262. Subject: Addition/Patch suggestion to Finder
  263. Date: 23 Mar 88 14:45:22 GMT
  264. Organization: General Electric CRD, Schenectady, NY
  265.  
  266.  
  267. A friend of mine and I were talking the other day and we came up with a
  268. good idea.  I'm sure you all are familiar with how the "Get Info"
  269. comments disappear when the desktop is rebuilt.  Discussions have been
  270. made about making these comments more concrete.  We thought it would be
  271. a good idea for someone to write an INIT patch to the Finder Get Info
  272. routine.  The basic PDL might be below:
  273.  
  274.    begin
  275.      if (application has new "info" resource)
  276.         load the info resource into comment field of get info box;
  277.      else
  278.         load creator/version resource into get info box;
  279.  
  280.      do "get info" as usual;
  281.  
  282.      wait(get info window is closed);
  283.  
  284.      when info window is closed, extract the get info comment field
  285.         and save it in the "info" resource of the application
  286.         (creating it if necessary);
  287.    end
  288.  
  289. It doesn't seem like it would be too hard for a real guru to pull off
  290. (check out the QuickFolder init - that's a real trick too).
  291.  
  292. How about it?  I couldn't do it (yet :^)).
  293. -- 
  294. Jeffrey A. Hallett                     | ARPA: hallett@ge-crd.arpa   
  295. Software Technology Program               | UUCP: desdemona!hallett@steinmetz.uucp
  296. GE Corporate Research and Development  | (518) 387-5654
  297. +--------------------------------------+--------------------------------------+
  298. |                            Credo Quia Absurdum Est                          |
  299. +-----------------------------------------------------------------------------+
  300.  
  301.  
  302. ------------------------------
  303.  
  304. From: paisley@cme-durer.ARPA (Scott Paisley)
  305. Subject: swapping ram chips
  306. Date: 23 Mar 88 20:01:20 GMT
  307. Organization: National Bureau of Standards, Gaithersburg, MD
  308.  
  309. Question:
  310.  
  311.     Let's say that the chip shortage is over.  Anyone else think that when
  312. the supply of chips catches up that there will be a huge decrease of
  313. price?  :-)
  314.  
  315.     Next question.  How many layers are the simm boards anyway? 2 layer?  4
  316. layer?  Actually what I'm trying to find out is, would it be possible to
  317. use the old 256 simms in my MacPlus, remove the old 256 chips and put in
  318. the the 1M chips in there place?  Is this cheaper? Can someone who can
  319. hold a solder iron do this?  It seems that one could get chips alot
  320. cheaper than simms and save some bucks.  But is it worth it?
  321. -- 
  322. "Why move around the world - Eden was so Near."
  323. Scott Paisley        ARPA   : paisley@cme-durer.arpa (prefered)
  324.                  paisley@cme-amrf.arpa
  325.             BITNET : paisley@cmeamrf
  326.  
  327.  
  328. ------------------------------
  329.  
  330. From: lipsett@inmet.UUCP
  331. Subject: Dialog Boxes with Scrollable region
  332. Date: 21 Mar 88 15:15:00 GMT
  333.  
  334. I am trying to build a dialog box with a scrollable region embedded in
  335. it, similar to the SF Getfile box or the MS Word help box.  It all
  336. looked so straightforward...just create a UserItem and do the obvious
  337. thing.
  338.  
  339. The catch is that ModalDialog does not give you any information about
  340. the event - only the item number of the hit on a mouse click.  So there
  341. seems no way to actually find out that the scroll bar was clicked upon
  342. rather than the textual portion of the item.  One hack is to use a
  343. filter function to ModalDialog to save the coordinates of each mouse
  344. click.  This would presumably work, but it still does not allow you to
  345. do continuous scrolling in the [page|line][up|down] regions.  Also, this
  346. is an incredible hack.  I can't believe it is the right way to do it.
  347.  
  348. So, what obvious thing am I missing?  Please reply by E-mail; I will
  349. summarize for the net if there are enough responses.  Thanks in advance.
  350. -- 
  351. Roger Lipsett
  352. {ihnp4,mirror,sun}!inmet!lipsett
  353.  
  354.  
  355. ------------------------------
  356.  
  357. From: gillies@uiucdcsp.cs.uiuc.edu
  358. Subject: Re: Apple's Video Exansion Kit
  359. Date: 24 Mar 88 06:14:00 GMT
  360.  
  361.  
  362. 1.  The video expansion is *JUST* memory.  8 41264-150 video DRAMs  Made
  363. by NEC Electronics (only supplier), 150ns access time -- o.k. to
  364. substitute 120ns or 100ns parts. 
  365.  
  366. 2.  I bought my own expansion for $46 ($5.50 each + tax) from FRYE's
  367. electronics in Silicon Valley (Sunnyvale Information: 415-555-1212, they
  368. mail-order free).  I got 120ns parts for the money 3 weeks ago. My Mac
  369. II runs great in 8-bit mode.  Be careful to ground yourself when you
  370. install the memory.
  371.  
  372. 3.  There is a severe shortage of *THESE* *VIDEO* *DRAMS* right now.
  373. Most mail-order houses will quote $8-$9 EACH, or more.  The DRAMs are
  374. being sold to OEMs, and chip quotas has caused a memory shortage.
  375.  
  376. 4.  If the shortage has subsided, call microprocessor's unlimited (back
  377. of BYTE).  Otherwise, try calling FRYE's.  Or find a local distributor
  378. with stock-on-hand that hasn't marked up his prices yet.
  379.  
  380. Don Gillies {ihnp4!uiucdcs!gillies} U of Illinois
  381.             {gillies@p.cs.uiuc.edu}
  382.  
  383.  
  384. ------------------------------
  385.  
  386. From: djh@munnari.oz (David Hornsby)
  387. Subject: Re: HELP- PLEASE! Need address of ATMS Authors
  388. Date: 24 Mar 88 03:39:13 GMT
  389. Organization: Comp Sci, Melbourne Uni, Australia
  390.  
  391. In article <1441@runx.ips.oz>, clubmac@runx.ips.oz (Macintosh Users Gp)
  392. writes:
  393. > Here is the address of one of ATMS's authors.
  394. > Jason Castan
  395. > ....junk.....
  396. > Australia 3124
  397. > Jason Haines, President
  398. > Club Mac - Australia's Largest Macintosh Users Group
  399.  
  400. The OFFICIAL address for ATMS enquiries is ...
  401.  
  402.     ATMS
  403.     David Hornsby
  404.     Department of Computer Science
  405.     Richard Berry Building
  406.     University of Melbourne
  407.     Parkville 3052, Victoria, Australia.
  408.  
  409. or
  410.     ...!uunet!munnari.oz!djh
  411.  
  412. Jason (Castan) will probably politely ignore mail sent directly to him
  413. ...
  414.  
  415. More details:
  416.  
  417.     The release version is available for US$99 from the above address.
  418.     It includes a printed manual, several demonstration programs and
  419.     ATMS version 2.03. The question of site licenses has been addressed
  420.     and the policy is to charge US$300 per educational institution.
  421.     This entitles you to 2 copies of discs, manuals etc. and permission
  422.     to make further copies for student use.
  423.  
  424.  - David.
  425.  
  426.  
  427. ------------------------------
  428.  
  429. From: ifocs9d@aucs.UUCP (Rick Giles)
  430. Subject: ResEdit
  431. Date: 23 Mar 88 11:55:52 GMT
  432. Organization: School of Computer Science, Acadia Univ., Nova Scotia
  433.  
  434. Apparently one can write an add-on editor for ResEdit. I am considering
  435. doint this; writing drivers in Lightspeed C. Has anyone used Lightspeed
  436. C to do this and, if so, could they send me info on the techniques/tools
  437. they used? Thanks.
  438.  
  439. Rick Giles
  440.  
  441.  
  442. ------------------------------
  443.  
  444. From: omh@nancy (Owen M. Hartnett)
  445. Subject: Polygon question
  446. Date: 23 Mar 88 04:32:44 GMT
  447. Organization: Brown University Computer Science Dept.
  448.  
  449.  
  450. Does anyone have a good method for determining the area (square pixels)
  451. of a Macintosh polygon?  The method I'm going to use would be to copy it
  452. to a blank offscreen bitmap, then scan through the bits looking for an
  453. edge, then count bits until I hit the next edge.
  454.  
  455. Any better ways (or a fast algorithm to do the above??)
  456.  
  457. Thanks,
  458.  
  459. Owen
  460. -- 
  461. Owen Hartnett
  462. Brown University Computer Science
  463.  
  464. omh@cs.brown.edu.CSNET 
  465. omh%cs.brown.edu
  466. {ihnp4,allegra}!brunix!omh
  467.  
  468. "Don't wait up for me tonight because I won't be home for a month."
  469.             -W.C. Fields
  470.  
  471.  
  472. ------------------------------
  473.  
  474. From: cs224052@brap0aa3 (Scott Draves)
  475. Subject: Bitmap to Region conversion
  476. Date: 23 Mar 88 19:16:45 GMT
  477. Organization: (SAE) Students Against Education
  478.  
  479.  
  480. I need to convert a bitmap into a region, where the region should
  481. contain exactly those bits that are black in the bitmap.  This is so
  482. that I can draw icons with a mask, but I can't use CopyMask, because I
  483. want it to print as well.  CopyBits is a more standard routine anyway
  484. (CopyMask wasn't documented until IM IV). Any ideas?  If if I have to
  485. mess with the Region datastructure itself,
  486. -- 
  487. then what is it?  Where is it documented?
  488. Giga Thanks,
  489. Scott Draves
  490.  
  491. PS: Reply to wsd@cs.brown.edu
  492. ****
  493.  
  494.  
  495. ------------------------------
  496.  
  497. From: km@cadre.dsl.PITTSBURGH.EDU (Ken Mitchum)
  498. Subject: MFKeys question
  499. Date: 24 Mar 88 15:15:38 GMT
  500. Organization: Decision Systems Lab., Univ. of Pittsburgh, PA.
  501.  
  502. In response to a user report, we discovered that MacJove crashes when
  503. used with Multifinder and the MFKeys INIT. On further testing, it seems
  504. that MacJove is not the real problem, as other applications compiled and
  505. linked with LightspeedC also crash with the MFKeys INIT, but that many
  506. other applications work fine with it. Has anyone else experienced this
  507. problem?
  508.  
  509.  Ken Mitchum
  510.  Decision Systems Laboratories
  511.  University of Pittsburgh
  512.  
  513.  
  514. ------------------------------
  515.  
  516. From: jeff@ogg.cgrg.ohio-state.edu (Jeff Faust)
  517. Subject: accurate timing for send/receive of MIDI data
  518. Date: 24 Mar 88 16:31:50 GMT
  519. Organization: Computer Graphics Research Group, Columbus OH
  520.  
  521.  
  522.     I'm interested in doing some very accurate timing for a
  523.     MIDI application on the mac. That is, I need a precise timing
  524.     technique for MIDI playback and recording. Using the
  525.     Vertical Retrace Manager seems to be the obvious choice but
  526.     I don't think an interrupt every 1/60 of a second is fast
  527.     enough for this application. Taking over the timer used for
  528.     sound seems to be another choice. I think it interrupts every
  529.     horizontal retrace. Unfortunately, documentation in Inside Mac
  530.     is pretty sparse in this area. I would appreciate hearing about
  531.     better approaches or recommendations on how to solve this problem.
  532.  
  533.  
  534. -- 
  535.  
  536. Jeff Faust, Graphics Software Research    |
  537. The Ohio Supercomputer Graphics Project    | {cbosgd,ucbvax}!osu-cis!ogg!jeff
  538. The Ohio State University        | jeff@ogg.cgrg.ohio-state.edu
  539. 1501 Neil Avenue, Columbus OH 43210    |
  540.  
  541.  
  542. ------------------------------
  543.  
  544. From: gz@spt.entity.com (Gail Zacharias)
  545. Subject: Re: Allegro CL strangeness; info request
  546. Date: 24 Mar 88 19:54:43 GMT
  547. Organization: A Kindof Entity, Cambridge, MA
  548.  
  549. In article <23403@ucbvax.BERKELEY.EDU> mkent@dewey.soe.berkeley.edu.UUCP
  550. (Marty Kent) writes:
  551. >non-Listener) window, I notice in the Allegro manual where is says under
  552. >"Drawing Text" (pg. C-7) "Special characters such as return (i.e. from
  553. >TERPRI...) have no effect."
  554.  
  555. Return means go to next line.  What's a 'next line' in a graphics
  556. window?
  557.  
  558. >              My first question is, "Who the hell are these
  559. >guys supposed to be kidding??"
  560.  
  561. Not being a guy, I guess I'll skip this one...
  562.  
  563. >So, before I go to the trouble of writing something that looks at a window
  564. >and does the right thing with scrolling, as well as font size, does
  565. >anyone have a working TERPRI for Allegro?
  566.  
  567. This doesn't really have anything to do with TERPRI, TERPRI just asks
  568. the window to output a return.  Vanilla graphics windows do nothing with
  569. the return.  It sounds like you're looking for a specialized kind of
  570. window which behaves like a 'dumb tty'.  This should be fairly easy to
  571. implement, you just need to define its stream-tyo function.  E.g.
  572.  
  573.     (defobject *dumb-tty-window* *window*)
  574.     (defobfun (stream-tyo *dumb-tty-window*) (char)
  575.       (if (not (eql char #\Newline)) (usual-stream-tyo char)
  576.         (with-port wptr
  577.            <scroll if necessary>
  578.            (move-to <wherever you feel the right place is>))))
  579.  
  580. >It seems to me from my bit of experimentation with *eventhook* that a
  581. >function bound to the global doesn't in fact get notified of all events.
  582.  
  583. *eventhook* gets all events that the Lisp gets.  By default, Macintosh
  584. applications don't get mouseUp events.  You can request to get them with
  585. the _SetEventMask trap.
  586.  
  587. >      I wrote a simple function to print out the fields in certain events
  588. >as they're detected by event-dispatch.  When I grab a window's size
  589. >control, it prints the "what" and msg fields, but won't print the "where"
  590. >field until I unbutton!
  591.  
  592. Standard output is buffered.  No i/o happens while tracking the size
  593. control so you only see however much of the buffer managed to get
  594. printed out before the tracking started.  When you release the button,
  595. the rest of the buffer gets printed.  Try doing a FINISH-OUTPUT before
  596. returning from your function.
  597.  
  598.  
  599. ------------------------------
  600.  
  601. From: ewing@yale.UUCP (ken ewing)
  602. Subject: Re: Allegro CL strangeness; info request
  603. Date: 24 Mar 88 22:56:09 GMT
  604. Organization: Yale University Computer Science Dept, New Haven CT
  605.  
  606. That's because the function stream-tyo  simply calls the Mac trap
  607. _drawchar after setting the current port to the port of the window
  608. object which you asked to stream-tyo.  _Drawchar, however, doesn't do
  609. "formatting", because "No formatting (such as carriage returns and line
  610. feeds) is performed by Quickdraw." [Inside Macintosh 1, 172; strangely
  611. mentioned only under the _Drawstring heading].  Anyway, since
  612. plain-vanilla windows are LISP streams of element type string-char, they
  613. should support terpri, fresh-line, format with ~%'s, etc.
  614.  
  615. But of course, fred-windows do support them fully.  Which brings me to
  616. wonder why you would rather not use fred-windows:  Are you trying to do
  617. text boxes within standard windows?  If so I strongly suggest that you
  618. use the Mac tool- boxes TextEdit routines for handling drawing
  619. characters, scrolling, text selection, etc.  I've had to use boxes of
  620. editable text for a program that I am writing, and rather than dive into
  621. the Mac I chose to use fred-windows by making sets of windows appear and
  622. react as single windows -- a gigantic hack, that even works ok, but NOT
  623. WORTH IT.  The right way is definitesly to create a user-dialog-item
  624. class of TextEdit text boxes, something that Coral should have done for
  625. us.
  626.  
  627.  
  628. ken ewing   ewing@cs.yale.edu   ewing@yale.UUCP
  629.  
  630. PS:  Boy am I glad to see some Coral Common Lispers out there: I don't
  631.      know 'bout you others, but I've been lonely trying to learn how
  632.      to program this micro with its fancy graphics interface from LISP,
  633.      of all languages!  :-) :-)
  634.  
  635. ------------------------------
  636.  
  637. End of Usenet Mac Digest
  638. ************************
  639. -------
  640.